package com.igoal.dto;

import java.io.Serializable;

import com.igoal.entity.Job;

public class JobDTO extends BaseDTO<Job> implements Serializable {

	private static final long serialVersionUID = -1088372393960365158L;

	private static final String DATA_STATUS_ADD = "add";
	private static final String DATA_STATUS_REMOVE = "remove";
	private static final String DATA_STATUS_UPDATE = "update";

	private Long id;
	private String jobName;
	private String jobTitle;
	private Integer from;
	private Integer to;
	private String dataStatus = DATA_STATUS_UPDATE;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobTitle() {
		return jobTitle;
	}

	public void setJobTitle(String jobTitle) {
		this.jobTitle = jobTitle;
	}

	public Integer getFrom() {
		return from;
	}

	public void setFrom(Integer from) {
		this.from = from;
	}

	public Integer getTo() {
		return to;
	}

	public void setTo(Integer to) {
		this.to = to;
	}

	public String getDataStatus() {
		return dataStatus;
	}

	public void setDataStatus(String dataStatus) {
		this.dataStatus = dataStatus;
	}

	public boolean isUpdated() {
		return DATA_STATUS_UPDATE.equals(this.dataStatus);
	}
	
	public boolean isRemoved() {
		return DATA_STATUS_REMOVE.equals(this.dataStatus);
	}
	
	public boolean isAdded() {
		return DATA_STATUS_ADD.equals(this.dataStatus);
	}
}
